#include"slist.h"

void testprint()
{
	STnode* plist = NULL;
	pushfront(&plist, 1);
	pushfront(&plist, 2);
	pushfront(&plist, 3);
	pushfront(&plist, 4);
	print(plist);

	pushback(&plist, 5);
	pushback(&plist, 6);

	pushback(&plist, 7);
	pushback(&plist, 8);
	STnode* pos = find(plist, 7);
	SLinsert(&plist, pos, 30);

	SLinsertAfter(pos, 5);
	print(plist);
	STerase(&plist, pos);
	print(plist);
	STnode* pos1= find(plist, 2);

	STeraseafter(pos1);
	print(plist);


}
int main()
{
	testprint();
}